#!/bin/bash

# Describe:     release markdown to Blog (MacOS)
# Create Date： 2021-10-24
# Create Time:  20:29
# Update Date:  2021-11-06
# Update Time:  12:06
# Author:       MiaoCunFa
# Version:      v0.0.2

#===================================================================

releaseDir="$HOME/workspace/github/fage.io-content-zoo"
markdown=$1

function Usage(){
    echo "release Path: $releaseDir"
    echo -e "\tUsage: release [markdown]"
    echo -e "\t\tmv markdown file to release"
    exit 0
}

#--------------------------Main Script------------------------------------

if [ "$1" == "" ]
then
    Usage
fi

if [ ! -d "${releaseDir}" ]
then
    echo "${releaseDir}: No such file or directory"
    exit 0
fi

cp $markdown $releaseDir/en/

# eof